package com.pattern.strategy.strategypattern;

import java.util.HashMap;
import java.util.Map;

public class HurtStrategy {
    public static final String player_1 = "player1";
    public static final String player_2 = "player2";
    public static final String player_3 = "player3";

    private static Map<String,GameplayerHurt> payStrategy = new HashMap<String,GameplayerHurt>();

    static {
        payStrategy.put(player_1,new player1());
        payStrategy.put(player_2,new player2());
        payStrategy.put(player_3,new player3());
    }

    public static GameplayerHurt get(String key){
        if(payStrategy.containsKey(key)){
            return payStrategy.get(key);
        }
        return null;
    }
}
